# import re  # 开心
#
#
# if __name__ == '__main__':
#     number = int(input())
#     questions = []
#     answers = []
#     for i in range(number):
#         mes = input()
#         questions.append(mes)  # 保存原始字符串
#         reg = re.compile(r'\s')
#         mes = reg.sub(r' ', mes)  # 把所有分隔符换成空格
#         mes = mes.split(' ')  # 用空格切片
#         mes = [item for item in mes if item != '']  # 消除空格
#         mes = ' '.join(mes)  # 重新用空格连接字符串
#         reg = re.compile(r' +(\W)')  # 消除标点符号前的空格 -- 测试点 0,2
#         mes = reg.sub(r"\1", mes)
#         mes = mes.replace('I', '$')  # 保护大写I
#         mes = mes.lower()  # 全部变小写, 包括Me -- 测试点 1
#         mes = mes.replace('$', 'I')  # 还原大写I
#         reg = re.compile(r'^(I|me)(?= |\W)|(?<= |\W)(I|me)(?= |\W)|(?<= |\W)(I|me)$|^(I|me)$')
#         mes = reg.sub(r'/*/', mes)  # 替换独立的I或me, 用/*/代替, 避免影响接下来对can you和could you的替换
#         reg = re.compile(r'^can you(?= |\W)|(?<= |\W)can you(?= |\W)|(?<= |\W)can you$|^can you$')
#         mes = reg.sub(r'I can', mes)  # 替换独立的can you
#         reg = re.compile(r'^could you(?= |\W)|(?<= |\W)could you(?= |\W)|(?<= |\W)could you$|^could you$')
#         mes = reg.sub(r'I could', mes)
#         reg = re.compile(r'^/\*/(?= |\W)|(?<= |\W)/\*/(?= |\W)|(?<= |\W)/\*/$|^/\*/$')
#         mes = reg.sub(r'you', mes)  # 还原you
#         mes = mes.replace('?', '!')  # 替换所有的?为!
#         answers.append('AI: ' + mes)  # 在修改后字符串前加上'AI:'
#     for i in range(number):
#         print(questions[i] + '\n' + answers[i], end='')
#         if i != number - 1:
#             print()
#
